Ext.define('App.view.home.List', {
    extend: "Ext.List",
    xtype: 'homeList',
    id: "homeList",
    config: {
        title: Global.Title,
        loadingText: Global.loadingText,
        autoDestroy: false,
        emptyText: Global.emptyText,
        plugins: [{
            xclass: 'Ext.plugin.ListPaging',
            loadMoreText: '加载更多'
        }],
        
        items: [{
            xtype: 'homeToolbar',
        }, {
            xtype: 'homeCarousel',
            height: 200
        }],
		
        
        itemTpl: ['<table>', '<tr>', '<td>', '<span class="legislator-list-item">', '<tpl if="subType == 01"><span class="legislator-pic" style="background-image: url(resources/img/news_1.png);"></span></tpl>', '<tpl if="subType == 02"><span class="legislator-pic" style="background-image: url(resources/img/news_2.png);"></span></tpl>', '<tpl if="subType == 03"><span class="legislator-pic" style="background-image: url(resources/img/news_3.png);"></span></tpl>', '</span>', '</td>', '<td>', '<span class="legislator-list-item">', '{title}', '</span>', '</td>', '</tr>', '</table>']
    
    
    }
});
